import yagmail


class Tools():
    def send_eamil(self):
        email=yagmail.SMTP(user='2904498982@qq.com',password='',host='smtp.qq.com')
        email.send(to='2904498982@qq.com',subject='测试报告',contents=['index.html','pytest.log'])